

<!----头部-------->
<div class="header">
    <ul class="nav">
        <a href="javascript:;" class="menu"><li><span><img src="{res file=images/nav_2.png}"></span></li></a>
        <a  href="{url app=store&id=$store.store_id}"> <img src="{$store.store_logo}" height="40"></a>
        <a href="{url app=cart}"><li><span><img src="{res file=images/nav_4.png}"></span></li></a>
        <a href="<!--{if $visitor.user_id}-->{url app=buyer_order}<!--{else}-->{url app=member&act=login&ret_url=$ret_url}<!--{/if}-->"><li><span><img src="{res file=images/nav_3.png}"></span></li></a>
        <a href="javascript:;" class="search"><li><span><img src="{res file=images/search_btn.png}"></span></li></a>
    </ul>
    <!----------下拉二级菜单--------------->
    <div class="sub_menu_bg">
        <div class="sub_menu">
            <ul>
                <h1 class="shrink">导航菜单<img src="{res file=images/hs.png}"></h1>
                <!--{if $store.radio_new eq '1'}-->
                <li>
                    <a href="index.php?app=store&act=search&id={$store.store_id}&order=add_time"><h2>最新商品</h2></a>
                </li>
                <!--{/if}-->
                <!--{if $store.radio_recommend eq '1'}-->
                <li>
                    <a href="index.php?app=store&act=search&id={$store.store_id}&recommended=1"><h2>推荐商品</h2></a>
                </li>
                <!--{/if}-->
                <!--{if $store.radio_hot eq '1'}-->   
                <li>
                    <a href="index.php?app=store&act=search&id={$store.store_id}&order=views"><h2>热门商品</h2></a>
                </li>
                <!--{/if}-->
                <!--{foreach from=$store.store_gcates item=gcategory}-->
                <li>
                    <!--{if $gcategory.children}-->
                    <a href="#"><h2>{$gcategory.value|escape}<b></b></h2></a> 
                    <ol  class="sub_menu_list">
                        <!--{foreach from=$gcategory.children item=child_gcategory}-->
                        <a href="{url app=store&id=$store.store_id&act=search&cate_id=$child_gcategory.id}"><b></b><li>{$child_gcategory.value|escape}</li></a>
                        <!--{/foreach}-->
                    </ol>
                    <!--{else}-->
                    <a href="{url app=store&id=$store.store_id&act=search&cate_id=$gcategory.id}"><h2>{$gcategory.value|escape}</h2></a>
                    <!--{/if}-->
                </li>
                <!--{/foreach}-->
                <li>
                    <h2>店铺二维码<b></b></h2>
                    <ol class="sub_menu_list">
                        <a href="#"><li>店铺ID：{$store.store_name|escape}</li></a>
                        <a href="#"><li>信用度：<!--{if $store.credit_value ge 0}--><img src="{$store.credit_image}" alt="" /><!--{/if}--></li></a>
                        <a href="#"><li>商品数：{$store.goods_count}</li></a>
                        <a href="#"><li><img src="<!--{if $store.store_code}-->{$store.store_code}<!--{else}-->{res file=images/code.jpg}<!--{/if}-->" width="210"></li></a>
                    </ol>
                </li>
            </ul>
            <div class="fun">
                <a href="javascript:collect_store({$store.store_id});" class="fav funm"><img src="{res file=images/favorite.png}"/>收藏本店</a>
            </div>
        </div>
        <!--------显示收藏信息------------->
        <div class="fav_msg">
            <img src="{res file=images/favorite.png}" />
            <span id="collect">收藏成功！</span>
        </div>
    </div>
</div>

<form  class="searchBar"  id="" name="" method="get" action="index.php">  
    <input type="hidden" name="app" value="store" />
    <input type="hidden" name="act" value="search" />
    <input type="hidden" name="id" value="{$store.store_id}" />
    <input type="text" placeholder="搜搜看吧" name="keyword" class="search_text" /><input type="submit" value="" class="search_btn" />
</form>